package com.fooddelivery.service;

import com.fooddelivery.dao.UserDAO;
import com.fooddelivery.model.User;

public class UserService {
    private UserDAO userDAO = new UserDAO();

    public User login(String username, String password) {
        return userDAO.getUserByUsernameAndPassword(username, password);
    }

    public void register(User user) {
        userDAO.addUser(user);
    }
}
